<?php
class Mymodel extends Model{
	function Mymodel(){
		parent::Model();
		$this->load->library('adodb');			
	}
	
	function getSmstrans(){		
	
		$sql = "select * from smstrans where ondate='20100322'";
		//echo $sql;
		$rs = $this->db->Execute($sql);
		if($fs == FALSE){
			//can't connection db...
		}else{
			$rtnData = $rs->GetArray();
		}

		return $rtnData;
		
	}
	
	function connDB(){
		echo 'Connectin db..<br />';
	}
	
	function initModel(){
		echo 'start model...<br />';
	}
}
?>